import { App } from "vue";
import { components, plugins } from "./plugins"
// import { systemComponent } from "@/components/system/component";

const installComponent = (app: App<Element>) => {
  // 注册elementUi的组件和插件
  components.forEach(component => {
    app.component(component.name, component)
  })
  plugins.forEach(plugin => {
    app.use(plugin)
  })

  // // 注册自定义的系统组件
  // Object.keys(systemComponent).forEach(component =>{
  //   app.component(component, systemComponent[component])
  // })
}

export default installComponent